 $(function(){
            checkAds($(window).width());
            $(window).resize(function(){
                checkAds($(window).width());
            });
        });

        function checkAds(windowWidth){
                       posLeft	= (windowWidth - 960)/2 - widthbn - 35;
                       posRight	=	(windowWidth - 1000)/2 - widthbn -25;
            if(windowWidth < 1000){

                $("#bnLeft").hide();
                $('#bnRight').hide();
            }else{
                $("#bnLeft").show();
                $('#bnRight').show();
                $("#bnLeft").css({ top: 5, left: posLeft, position: (isIE6 == true ? "absolute" : "fixed"), top : 2 });
                $("#bnRight").css({ top: 5, right: posRight, position: (isIE6 == true ? "absolute" : "fixed"), top : 2 });
            }
        }   
